package com.gao.director;

import com.gao.builder.HouseBuilder;
import com.gao.domain.House;

/**
 * @author GaoXi
 * @date 2021/5/19 20:35
 */
public class HouseDirector {

    public House constructHouse(HouseBuilder houseBuilder){
        houseBuilder.buildAround();
        houseBuilder.addRoof();
        houseBuilder.addDoor();
        houseBuilder.addWindows();
        return houseBuilder.getResult();
    }



}
